import request from '@/utils/request'
const api_name='/Finance'

export default{

    //出入库台账
    bill(billDTO){
        return request({
            url:`${api_name}/SelectBill`,
            method:"post",
            data:billDTO
        })
    },
    //计划结算
    paln(planRecordDTO){
        return request({
            url:`${api_name}/SelectPlanRecord`,
            method:"post",
            data:planRecordDTO
        })
    },
    //年度台账结算
    year(yearBillDTO){
        return request({
            url:`${api_name}/SelectYearBill`,
            method:"post",
            data:yearBillDTO
        })
    },

    //查询所有操作类型
    opType(){
        return request({
            url:`${api_name}/SelectBillAllOpType`,
            method:"get",
        })
    },
    //查询账单表全部计划类型
    planType(){
        return request({
            url:`${api_name}/SelectBillAllPlanType`,
            method:"get",
        })
    },

    //查询操作表的所有计划类型
    yearPlanType(){
        return request({
            url:`${api_name}/selectAllOpPlanType`,
            method:"get",
        })
    },

    //更新计划表的结算状态
    updatePlan(planId){
        return request({
            url:`${api_name}/updatePlanById`,
            method:"get",
        })
    }


}